package fun.codefarmer.pm.mapper;


import fun.codefarmer.pm.dto.HrDto;
import fun.codefarmer.pm.model.Hr;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HrMapper {

    Hr loadUserByUsername(String username);

    List<Hr> getAllHr(@Param("hrid") Integer id,@Param("name")String name);

    int deleteByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Hr hr);

    Hr selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelectiveDto(HrDto hr);

    int insertSelective(HrDto hr);
}